package work810;

import java.util.Scanner;

public class work2 {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    System.out.println("请输入：");
    String str = sc.next();
    String[] strings = new String[]{"性","色情","爆炸","恐怖","枪","军火"};
    String string2 = "";
    for (int i = 0;i<strings.length;i++) {
      string2 = str.replaceAll(strings[i],"*");
      str = string2;
    }
    System.out.println(str);
  }
}
